package com.punai.gk.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.common.core.domain.TreeBo;
import com.punai.common.core.page.TableDataInfo;
import com.punai.gk.domain.GkLinkFee;
import com.punai.gk.domain.vo.GkLinkFeeVo;
import com.punai.gk.mapper.GkLinkFeeMapper;
import com.punai.gk.service.IGkLinkFeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 归口关联费用项Service业务层处理
 *
 * @author zxw_
 * @date 2023-01-06
 */
@Service
public class GkLinkFeeServiceImpl extends ServiceImpl<GkLinkFeeMapper,GkLinkFee> implements IGkLinkFeeService
{
    @Autowired
    private GkLinkFeeMapper gkLinkFeeMapper;

    /**
     * 查询归口关联费用项
     *
     * @param id 归口关联费用项主键
     * @return 归口关联费用项
     */
    @Override
    public GkLinkFee selectGkLinkFeeById(String id)
    {
        return gkLinkFeeMapper.selectGkLinkFeeById(id);
    }

    /**
     * 查询归口关联费用项列表
     *
     * @param gkLinkFee 归口关联费用项
     * @return 归口关联费用项
     */
    @Override
    public List<GkLinkFee> selectGkLinkFeeList(GkLinkFee gkLinkFee)
    {
        return gkLinkFeeMapper.selectGkLinkFeeList(gkLinkFee);
    }

    /**
     * 新增归口关联费用项
     *
     * @param gkLinkFee 归口关联费用项
     * @return 结果
     */
    @Override
    public int insertGkLinkFee(GkLinkFee gkLinkFee)
    {
            return gkLinkFeeMapper.insert(gkLinkFee);
    }

    /**
     * 修改归口关联费用项
     *
     * @param gkLinkFee 归口关联费用项
     * @return 结果
     */
    @Override
    public int updateGkLinkFee(GkLinkFee gkLinkFee)
    {
        return gkLinkFeeMapper.updateById(gkLinkFee);
    }

    /**
     * 批量删除归口关联费用项
     *
     * @param ids 需要删除的归口关联费用项主键
     * @return 结果
     */
    @Override
    public int deleteGkLinkFeeByIds(String[] ids)
    {
        return gkLinkFeeMapper.deleteGkLinkFeeByIds(ids);
    }

    /**
     * 删除归口关联费用项信息
     *
     * @param id 归口关联费用项主键
     * @return 结果
     */
    @Override
    public int deleteGkLinkFeeById(String id)
    {
        return gkLinkFeeMapper.deleteGkLinkFeeById(id);
    }

    @Override
    public TableDataInfo getLastPubFee(GkLinkFeeVo vo) {
        

        return null;
    }

    @Override
    public List<TreeBo> getCurrNewFeeChapter(String type) {


        return null;
    }
}
